<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Collision Checker: cpp/collision/include/collision/line_segment.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Collision Checker
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_df511e5bd85cec96854b39d5e1c27aa8.html">cpp</a></li><li class="navelem"><a class="el" href="dir_bf0f0c8865c1942e08ab5157e2c596db.html">collision</a></li><li class="navelem"><a class="el" href="dir_0695118b3b27d100933d16472a5a2e05.html">include</a></li><li class="navelem"><a class="el" href="dir_d28884e0e9991dd74831dd1628ef4f1a.html">collision</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">line_segment.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="line__segment_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * line_segment.h</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *  Created on: Oct 29, 2018</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *  Author: Vitaliy Rusinov</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#ifndef CPP_COLLISION_LINE_SEGMENT_H_</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#define CPP_COLLISION_LINE_SEGMENT_H_</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="raytrace__primitive_8h.html">collision/raytrace_primitive.h</a>&quot;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;Eigen/Dense&gt;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacecollision.html">collision</a></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;{</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="classcollision_1_1_line_segment.html">   19</a></span>&#160;<span class="keyword">class </span><a class="code" href="classcollision_1_1_line_segment.html">LineSegment</a> {</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="classcollision_1_1_line_segment.html#a7305df15c861908cc357cdf290f4525e">   21</a></span>&#160;  <a class="code" href="classcollision_1_1_line_segment.html#a7305df15c861908cc357cdf290f4525e">LineSegment</a>(<span class="keyword">const</span> Eigen::Vector2d &amp;<a class="code" href="classcollision_1_1_line_segment.html#a4b87aae8650c9555495a23dd374ac338">point1</a>, <span class="keyword">const</span> Eigen::Vector2d &amp;<a class="code" href="classcollision_1_1_line_segment.html#a6e28d7aab313a21ad8d88896c2089f14">point2</a>) {</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    <a class="code" href="classcollision_1_1_line_segment.html#a220e69c8610d77aa5e4ce1df8314efb8">point1_</a>.<a class="code" href="structcollision_1_1raytrace_1_1_point.html#a569322759d29989a357eafd9f376304d">x</a> = <a class="code" href="classcollision_1_1_line_segment.html#a4b87aae8650c9555495a23dd374ac338">point1</a>[0];</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    <a class="code" href="classcollision_1_1_line_segment.html#a220e69c8610d77aa5e4ce1df8314efb8">point1_</a>.<a class="code" href="structcollision_1_1raytrace_1_1_point.html#a75ada217adbe221af6bdb23a173c7d64">y</a> = <a class="code" href="classcollision_1_1_line_segment.html#a4b87aae8650c9555495a23dd374ac338">point1</a>[1];</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    <a class="code" href="classcollision_1_1_line_segment.html#add8c4f816499c617c90e43511ca3ee32">point2_</a>.<a class="code" href="structcollision_1_1raytrace_1_1_point.html#a569322759d29989a357eafd9f376304d">x</a> = <a class="code" href="classcollision_1_1_line_segment.html#a6e28d7aab313a21ad8d88896c2089f14">point2</a>[0];</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    <a class="code" href="classcollision_1_1_line_segment.html#add8c4f816499c617c90e43511ca3ee32">point2_</a>.<a class="code" href="structcollision_1_1raytrace_1_1_point.html#a75ada217adbe221af6bdb23a173c7d64">y</a> = <a class="code" href="classcollision_1_1_line_segment.html#a6e28d7aab313a21ad8d88896c2089f14">point2</a>[1];</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;  }</div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="classcollision_1_1_line_segment.html#a6486b56a92def17c1a972f307cd1513a">   27</a></span>&#160;  <a class="code" href="classcollision_1_1_line_segment.html#a6486b56a92def17c1a972f307cd1513a">LineSegment</a>(<a class="code" href="structcollision_1_1raytrace_1_1_point.html">raytrace::Point</a> <a class="code" href="classcollision_1_1_line_segment.html#a4b87aae8650c9555495a23dd374ac338">point1</a>, <a class="code" href="structcollision_1_1raytrace_1_1_point.html">raytrace::Point</a> <a class="code" href="classcollision_1_1_line_segment.html#a6e28d7aab313a21ad8d88896c2089f14">point2</a>) {</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <a class="code" href="classcollision_1_1_line_segment.html#a220e69c8610d77aa5e4ce1df8314efb8">point1_</a> = <a class="code" href="classcollision_1_1_line_segment.html#a4b87aae8650c9555495a23dd374ac338">point1</a>;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    <a class="code" href="classcollision_1_1_line_segment.html#add8c4f816499c617c90e43511ca3ee32">point2_</a> = <a class="code" href="classcollision_1_1_line_segment.html#a6e28d7aab313a21ad8d88896c2089f14">point2</a>;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;  }</div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="classcollision_1_1_line_segment.html#acc1088dfbcabbc772b6287c9d99a7e8a">   31</a></span>&#160;  <a class="code" href="classcollision_1_1_line_segment.html#acc1088dfbcabbc772b6287c9d99a7e8a">LineSegment</a>(<span class="keyword">const</span> <a class="code" href="classcollision_1_1_line_segment.html">LineSegment</a> &amp;ls2) {</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    <a class="code" href="classcollision_1_1_line_segment.html#a220e69c8610d77aa5e4ce1df8314efb8">point1_</a> = ls2.<a class="code" href="classcollision_1_1_line_segment.html#a220e69c8610d77aa5e4ce1df8314efb8">point1_</a>;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <a class="code" href="classcollision_1_1_line_segment.html#add8c4f816499c617c90e43511ca3ee32">point2_</a> = ls2.<a class="code" href="classcollision_1_1_line_segment.html#add8c4f816499c617c90e43511ca3ee32">point2_</a>;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;  }</div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classcollision_1_1_line_segment.html#a4b87aae8650c9555495a23dd374ac338">   35</a></span>&#160;  <a class="code" href="structcollision_1_1raytrace_1_1_point.html">raytrace::Point</a> <a class="code" href="classcollision_1_1_line_segment.html#a4b87aae8650c9555495a23dd374ac338">point1</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classcollision_1_1_line_segment.html#a220e69c8610d77aa5e4ce1df8314efb8">point1_</a>; }</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classcollision_1_1_line_segment.html#a6e28d7aab313a21ad8d88896c2089f14">   37</a></span>&#160;  <a class="code" href="structcollision_1_1raytrace_1_1_point.html">raytrace::Point</a> <a class="code" href="classcollision_1_1_line_segment.html#a6e28d7aab313a21ad8d88896c2089f14">point2</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classcollision_1_1_line_segment.html#add8c4f816499c617c90e43511ca3ee32">point2_</a>; }</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classcollision_1_1_line_segment.html#a79d6f50f5d701124725e30a3a9d0f9d8">   39</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classcollision_1_1_line_segment.html#a79d6f50f5d701124725e30a3a9d0f9d8">set_point_1</a>(<span class="keyword">const</span> <a class="code" href="structcollision_1_1raytrace_1_1_point.html">raytrace::Point</a> &amp;<a class="code" href="classcollision_1_1_line_segment.html#a4b87aae8650c9555495a23dd374ac338">point1</a>) { <a class="code" href="classcollision_1_1_line_segment.html#a220e69c8610d77aa5e4ce1df8314efb8">point1_</a> = <a class="code" href="classcollision_1_1_line_segment.html#a4b87aae8650c9555495a23dd374ac338">point1</a>; }</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classcollision_1_1_line_segment.html#aaf5489d24a478b9e499653eb07f352f7">   41</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classcollision_1_1_line_segment.html#aaf5489d24a478b9e499653eb07f352f7">set_point_2</a>(<span class="keyword">const</span> <a class="code" href="structcollision_1_1raytrace_1_1_point.html">raytrace::Point</a> &amp;<a class="code" href="classcollision_1_1_line_segment.html#a6e28d7aab313a21ad8d88896c2089f14">point2</a>) { <a class="code" href="classcollision_1_1_line_segment.html#add8c4f816499c617c90e43511ca3ee32">point2_</a> = <a class="code" href="classcollision_1_1_line_segment.html#a6e28d7aab313a21ad8d88896c2089f14">point2</a>; }</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classcollision_1_1_line_segment.html#acde5b5ccc7718774b9fd8f93395f1a69">   43</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classcollision_1_1_line_segment.html#acde5b5ccc7718774b9fd8f93395f1a69">swap</a>(<span class="keywordtype">void</span>) {</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <a class="code" href="structcollision_1_1raytrace_1_1_point.html">raytrace::Point</a> point3 = <a class="code" href="classcollision_1_1_line_segment.html#add8c4f816499c617c90e43511ca3ee32">point2_</a>;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <a class="code" href="classcollision_1_1_line_segment.html#add8c4f816499c617c90e43511ca3ee32">point2_</a> = <a class="code" href="classcollision_1_1_line_segment.html#a220e69c8610d77aa5e4ce1df8314efb8">point1_</a>;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <a class="code" href="classcollision_1_1_line_segment.html#a220e69c8610d77aa5e4ce1df8314efb8">point1_</a> = point3;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;  }</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classcollision_1_1_line_segment.html#a51097f54b96e8dd047cc3be7b87ce807">   49</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classcollision_1_1_line_segment.html#a51097f54b96e8dd047cc3be7b87ce807">intersect</a>(<a class="code" href="classcollision_1_1_line_segment.html">LineSegment</a> segment2,</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;                 std::vector&lt;Eigen::Vector2d&gt; &amp;inters)<span class="keyword"> const </span>{</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    std::vector&lt;raytrace::Point&gt; inters1;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="keywordtype">bool</span> res =</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        <a class="code" href="namespacecollision_1_1raytrace.html#a9b179e024ada71f8f3197d7a514bcb82">raytrace::doIntersect</a>(this-&gt;<a class="code" href="classcollision_1_1_line_segment.html#a220e69c8610d77aa5e4ce1df8314efb8">point1_</a>, this-&gt;<a class="code" href="classcollision_1_1_line_segment.html#add8c4f816499c617c90e43511ca3ee32">point2_</a>, segment2.<a class="code" href="classcollision_1_1_line_segment.html#a220e69c8610d77aa5e4ce1df8314efb8">point1_</a>,</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;                              segment2.<a class="code" href="classcollision_1_1_line_segment.html#add8c4f816499c617c90e43511ca3ee32">point2_</a>, inters1);</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">auto</span> &amp;el : inters1) {</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;      Eigen::Vector2d v2(el.x, el.y);</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;      inters.push_back(v2);</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    }</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="keywordflow">return</span> res;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;  }</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classcollision_1_1_line_segment.html#a220e69c8610d77aa5e4ce1df8314efb8">   64</a></span>&#160;  <a class="code" href="structcollision_1_1raytrace_1_1_point.html">raytrace::Point</a> <a class="code" href="classcollision_1_1_line_segment.html#a220e69c8610d77aa5e4ce1df8314efb8">point1_</a>;</div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classcollision_1_1_line_segment.html#add8c4f816499c617c90e43511ca3ee32">   65</a></span>&#160;  <a class="code" href="structcollision_1_1raytrace_1_1_point.html">raytrace::Point</a> <a class="code" href="classcollision_1_1_line_segment.html#add8c4f816499c617c90e43511ca3ee32">point2_</a>;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;};</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;} <span class="comment">// namespace collision</span></div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* CPP_COLLISION_LINE_SEGMENT_H_ */</span><span class="preprocessor"></span></div><div class="ttc" id="raytrace__primitive_8h_html"><div class="ttname"><a href="raytrace__primitive_8h.html">raytrace_primitive.h</a></div></div>
<div class="ttc" id="structcollision_1_1raytrace_1_1_point_html"><div class="ttname"><a href="structcollision_1_1raytrace_1_1_point.html">collision::raytrace::Point</a></div><div class="ttdef"><b>Definition:</b> <a href="raytrace__primitive_8h_source.html#l00021">raytrace_primitive.h:21</a></div></div>
<div class="ttc" id="classcollision_1_1_line_segment_html_aaf5489d24a478b9e499653eb07f352f7"><div class="ttname"><a href="classcollision_1_1_line_segment.html#aaf5489d24a478b9e499653eb07f352f7">collision::LineSegment::set_point_2</a></div><div class="ttdeci">void set_point_2(const raytrace::Point &amp;point2)</div><div class="ttdef"><b>Definition:</b> <a href="line__segment_8h_source.html#l00041">line_segment.h:41</a></div></div>
<div class="ttc" id="classcollision_1_1_line_segment_html_a6e28d7aab313a21ad8d88896c2089f14"><div class="ttname"><a href="classcollision_1_1_line_segment.html#a6e28d7aab313a21ad8d88896c2089f14">collision::LineSegment::point2</a></div><div class="ttdeci">raytrace::Point point2() const</div><div class="ttdef"><b>Definition:</b> <a href="line__segment_8h_source.html#l00037">line_segment.h:37</a></div></div>
<div class="ttc" id="classcollision_1_1_line_segment_html_a220e69c8610d77aa5e4ce1df8314efb8"><div class="ttname"><a href="classcollision_1_1_line_segment.html#a220e69c8610d77aa5e4ce1df8314efb8">collision::LineSegment::point1_</a></div><div class="ttdeci">raytrace::Point point1_</div><div class="ttdef"><b>Definition:</b> <a href="line__segment_8h_source.html#l00064">line_segment.h:64</a></div></div>
<div class="ttc" id="namespacecollision_html"><div class="ttname"><a href="namespacecollision.html">collision</a></div><div class="ttdef"><b>Definition:</b> <a href="collision__checker_8h_source.html#l00020">collision_checker.h:20</a></div></div>
<div class="ttc" id="classcollision_1_1_line_segment_html_a7305df15c861908cc357cdf290f4525e"><div class="ttname"><a href="classcollision_1_1_line_segment.html#a7305df15c861908cc357cdf290f4525e">collision::LineSegment::LineSegment</a></div><div class="ttdeci">LineSegment(const Eigen::Vector2d &amp;point1, const Eigen::Vector2d &amp;point2)</div><div class="ttdef"><b>Definition:</b> <a href="line__segment_8h_source.html#l00021">line_segment.h:21</a></div></div>
<div class="ttc" id="namespacecollision_1_1raytrace_html_a9b179e024ada71f8f3197d7a514bcb82"><div class="ttname"><a href="namespacecollision_1_1raytrace.html#a9b179e024ada71f8f3197d7a514bcb82">collision::raytrace::doIntersect</a></div><div class="ttdeci">bool doIntersect(Point p1, Point q1, Point p2, Point q2, std::vector&lt; Point &gt; &amp;inters)</div><div class="ttdef"><b>Definition:</b> <a href="raytrace__primitive_8cc_source.html#l00137">raytrace_primitive.cc:137</a></div></div>
<div class="ttc" id="structcollision_1_1raytrace_1_1_point_html_a569322759d29989a357eafd9f376304d"><div class="ttname"><a href="structcollision_1_1raytrace_1_1_point.html#a569322759d29989a357eafd9f376304d">collision::raytrace::Point::x</a></div><div class="ttdeci">double x</div><div class="ttdef"><b>Definition:</b> <a href="raytrace__primitive_8h_source.html#l00025">raytrace_primitive.h:25</a></div></div>
<div class="ttc" id="classcollision_1_1_line_segment_html_acde5b5ccc7718774b9fd8f93395f1a69"><div class="ttname"><a href="classcollision_1_1_line_segment.html#acde5b5ccc7718774b9fd8f93395f1a69">collision::LineSegment::swap</a></div><div class="ttdeci">void swap(void)</div><div class="ttdef"><b>Definition:</b> <a href="line__segment_8h_source.html#l00043">line_segment.h:43</a></div></div>
<div class="ttc" id="classcollision_1_1_line_segment_html_acc1088dfbcabbc772b6287c9d99a7e8a"><div class="ttname"><a href="classcollision_1_1_line_segment.html#acc1088dfbcabbc772b6287c9d99a7e8a">collision::LineSegment::LineSegment</a></div><div class="ttdeci">LineSegment(const LineSegment &amp;ls2)</div><div class="ttdef"><b>Definition:</b> <a href="line__segment_8h_source.html#l00031">line_segment.h:31</a></div></div>
<div class="ttc" id="structcollision_1_1raytrace_1_1_point_html_a75ada217adbe221af6bdb23a173c7d64"><div class="ttname"><a href="structcollision_1_1raytrace_1_1_point.html#a75ada217adbe221af6bdb23a173c7d64">collision::raytrace::Point::y</a></div><div class="ttdeci">double y</div><div class="ttdef"><b>Definition:</b> <a href="raytrace__primitive_8h_source.html#l00026">raytrace_primitive.h:26</a></div></div>
<div class="ttc" id="classcollision_1_1_line_segment_html_a4b87aae8650c9555495a23dd374ac338"><div class="ttname"><a href="classcollision_1_1_line_segment.html#a4b87aae8650c9555495a23dd374ac338">collision::LineSegment::point1</a></div><div class="ttdeci">raytrace::Point point1() const</div><div class="ttdef"><b>Definition:</b> <a href="line__segment_8h_source.html#l00035">line_segment.h:35</a></div></div>
<div class="ttc" id="classcollision_1_1_line_segment_html"><div class="ttname"><a href="classcollision_1_1_line_segment.html">collision::LineSegment</a></div><div class="ttdef"><b>Definition:</b> <a href="line__segment_8h_source.html#l00019">line_segment.h:19</a></div></div>
<div class="ttc" id="classcollision_1_1_line_segment_html_a79d6f50f5d701124725e30a3a9d0f9d8"><div class="ttname"><a href="classcollision_1_1_line_segment.html#a79d6f50f5d701124725e30a3a9d0f9d8">collision::LineSegment::set_point_1</a></div><div class="ttdeci">void set_point_1(const raytrace::Point &amp;point1)</div><div class="ttdef"><b>Definition:</b> <a href="line__segment_8h_source.html#l00039">line_segment.h:39</a></div></div>
<div class="ttc" id="classcollision_1_1_line_segment_html_a6486b56a92def17c1a972f307cd1513a"><div class="ttname"><a href="classcollision_1_1_line_segment.html#a6486b56a92def17c1a972f307cd1513a">collision::LineSegment::LineSegment</a></div><div class="ttdeci">LineSegment(raytrace::Point point1, raytrace::Point point2)</div><div class="ttdef"><b>Definition:</b> <a href="line__segment_8h_source.html#l00027">line_segment.h:27</a></div></div>
<div class="ttc" id="classcollision_1_1_line_segment_html_a51097f54b96e8dd047cc3be7b87ce807"><div class="ttname"><a href="classcollision_1_1_line_segment.html#a51097f54b96e8dd047cc3be7b87ce807">collision::LineSegment::intersect</a></div><div class="ttdeci">bool intersect(LineSegment segment2, std::vector&lt; Eigen::Vector2d &gt; &amp;inters) const</div><div class="ttdef"><b>Definition:</b> <a href="line__segment_8h_source.html#l00049">line_segment.h:49</a></div></div>
<div class="ttc" id="classcollision_1_1_line_segment_html_add8c4f816499c617c90e43511ca3ee32"><div class="ttname"><a href="classcollision_1_1_line_segment.html#add8c4f816499c617c90e43511ca3ee32">collision::LineSegment::point2_</a></div><div class="ttdeci">raytrace::Point point2_</div><div class="ttdef"><b>Definition:</b> <a href="line__segment_8h_source.html#l00065">line_segment.h:65</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
